<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Wyp
 */

namespace App\Modules\Live\Validators;


use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class LiveLikeValidator extends LaravelValidator
{
    protected $rules = [
        ValidatorInterface::RULE_CREATE => [
            'member_id' => 'required|numeric',
            'live_id' => 'required|numeric',
        ],
    ];
    protected $messages = [
        'member_id.required' => '用户id不能为空',
        'member_id.numeric' => '用户di格式错误',

        'live_id.required' => '直播id不能为空',
        'live_id.numeric' => '直播id格式错误',
    ];
}